﻿//	Plazes-ASPI is an AS2.0 abstraction of the Plazes (http://www.plazes.com) XMLRPC-API
//		Copyright (C) 2006	Florian Mlodzik
//
//		This library is free software; you can redistribute it and/or
//		modify it under the terms of the GNU Lesser General Public
//		License as published by the Free Software Foundation; either
//		version 2.1 of the License, or (at your option) any later version.
//
//		This library is distributed in the hope that it will be useful,
//		but WITHOUT ANY WARRANTY; without even the implied warranty of
//		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the GNU
//		Lesser General Public License for more details.
//
//		You should have received a copy of the GNU Lesser General Public
//		License along with this library; if not, write to the Free Software
//		Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

// svn:keywords
// $URL: http://plazes-aspi.googlecode.com/svn/trunk/src/as2/com/orthogeneric/net/xmlrpc/events/XmlRpcResult.as $
// $Id: XmlRpcResult.as 4 2006-07-29 09:33:20Z florian.mlodzik $

/**
* A XmlRpcResult-event will be dispatched by a XmlRpc-instance when the RPC response has been downloaded and serialized to Actionscript types.		
* 
* @author florian.mlodzik@gmail.com
* @version 1.0
*/

// --> import
import com.orthogeneric.net.xmlrpc.XmlRpc;
// <-- import

class com.orthogeneric.net.xmlrpc.events.XmlRpcResult
{
	/** The type of this event, always being "onXmlRpcResult" */
	public var type:String = "onXmlRpcResult";
	/** The target of this event referencing a {@code XmlRpc}-instance */
	public var target:XmlRpc;
	/** The result from the RPC serialized to Actionscript types */
	public var result:Object;
	/** The XML-instance used for the RPC */
	public var xml:XML;
	/** The name of the remote method called */
	public var remoteMethod:String;
	
	/**
	* The XmlRpcResult-class constructor.
	* 
	* @param t The XmlRpc-instance that invoked the remote procedure call
	* @param r The result serialized to Actionscript types 
	* @param x A XML-instance that conducted the RPC
	* @param method The name of the remote method called 
	* 
	* @see com.orthogeneric.net.xmlrpc.XmlRpc#_onLoad()
	* 
	* @exclude 
	*/
	public function XmlRpcResult(t:XmlRpc, r:Object, x:XML, m:String)
	{
		target = t;
		result = r;
		xml = x;
		remoteMethod = m;
	}
}
